import Cookies from 'universal-cookie';
import config from '../config';

const cookies = new Cookies();

export const setToken = (token: string) => cookies.set(config.TOKEN_KEY, token);

export const getToken = (): string => cookies.get(config.TOKEN_KEY) || '';

export const removeToken = () => cookies.remove(config.TOKEN_KEY);
